{% extends "base.html" %}

{% block title %} Invite Author -{{ block.usper }} {% endblock %}

{% block content %}

{% ifequal next 'y' %}

{% ifequal already_created True %}  

 You have already sent an invitation  

{% else %}

 Your invitation is sent to the author

{% endifequal %}

{% endifequal  %}

{% ifequal next 'n' %}

<form method="POST" name="invite" action = "{% url author_invite %}" >
 <ul>
  {{ invitationform.as_ul }}
 </ul>
 <input type="submit" value="Invite Author"/>
 <input type="hidden" name="to_user" value="{{ to_user_id }}"/>
</form>

{% endifequal  %}

{% endblock %}
